package xiaopiya.robot.system;

import java.io.Serializable;

/**
 * @author Ray (ayufox@gmail.com)
 * @version 0.1
 */
public class Friend implements Serializable
{
	public final static Integer BOOKSTATUS_BOOKING = 1;

	public final static Integer BOOKSTATUS_CANCEL = 2;

	private String friendid;

	private String nick;

	private Integer bookstatus = BOOKSTATUS_BOOKING;

	public Friend(String friendid, String nick)
	{
		this.friendid = friendid;
		this.nick = nick;
	}

	public Friend(String friendid, String nick, Integer bookstatus)
	{
		this.friendid = friendid;
		this.nick = nick;
		this.bookstatus = bookstatus;
	}

	public String getNick()
	{
		return nick;
	}

	public void setNick(String nick)
	{
		this.nick = nick;
	}

	public String getFriendid()
	{
		return friendid;
	}

	public void setFriendid(String friendid)
	{
		this.friendid = friendid;
	}

	public Integer getBookstatus()
	{
		return bookstatus;
	}

	public void setBookstatus(Integer bookstatus)
	{
		this.bookstatus = bookstatus;
	}

	public String toString()
	{
		return "Friend[friendid=" + this.friendid + ",bookstatus="
				+ this.bookstatus + "]";
	}

	public boolean isBooking()
	{
		return BOOKSTATUS_BOOKING.equals(this.bookstatus);
	}
}
